<?php
	$content_xml .= '
	<office:body>
		<office:text text:use-soft-page-breaks="true">
			<text:sequence-decls>
				<text:sequence-decl text:display-outline-level="0"
					text:name="Illustration" />
				<text:sequence-decl text:display-outline-level="0"
					text:name="Table" />
				<text:sequence-decl text:display-outline-level="0"
					text:name="Text" />
				<text:sequence-decl text:display-outline-level="0"
					text:name="Drawing" />
			</text:sequence-decls>';
	/*
	 * voi face verificare si voi vedea daca exista poza clientului
	 * daca este o pun iar daca nu nu.
	 */
	
	if (isset($setari_client->cale_banner) && !empty($setari_client->cale_banner)) {
		/*
		 * atunci voi pune poza
		 */
		$info = getimagesize(FULL_IMAGE_PATH . $_SESSION['setari']->cale_banner);
		
		$content_xml .= '
			<text:p text:style-name="P18">
				<draw:frame draw:style-name="fr1" draw:name="graphics1"
					text:anchor-type="paragraph" svg:width="' . $info[0] . 'pt"
					svg:height="' . $info[1] . 'pt" draw:z-index="0">
					<draw:image
						xlink:href="Pictures/' . substr($setari_client->cale_banner, 22) . '"
						xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad" />
				</draw:frame>
			</text:p>';		
	}
	$content_xml .= '
			<text:p text:style-name="P7">' . htmlspecialchars($client->nume) . '</text:p>
			<text:p text:style-name="P8">' . getAdresaAsString($client->adresa) . '</text:p>	
			<text:p text:style-name="P8">' . LANG_cod_fiscal . ' ' . htmlspecialchars($client->cf) . '</text:p>
			<text:p text:style-name="P8">' . LANG_RC . ' ' . htmlspecialchars($client->rc) . '</text:p>
			<text:p text:style-name="P8" />
			<text:p text:style-name="P6">' . LANG_Catre . '</text:p>
			<text:p text:style-name="P3" />
			<text:p text:style-name="P5">' . htmlspecialchars($firma_exec->nume) . '</text:p>
			<text:p text:style-name="P9">' . htmlspecialchars($firma_exec->adresa->adresa) . '</text:p>
			<text:p text:style-name="P9">' . LANG_cod_fiscal . ' ' . htmlspecialchars($firma_exec->cf) . '</text:p>
			<text:p text:style-name="P9">' . LANG_RC . ' ' . htmlspecialchars($firma_exec->rc) . '</text:p>
			<text:p text:style-name="P9" />
			<text:p text:style-name="P10">';
//			if ($comanda->interna_externa == CT_COMANDA_INTERNA)
//				$content_xml .= LANG_Comanda_interna_de_transport;
//			else
//                $content_xml .= LANG_Comanda_externa_de_transport;
            $content_xml .= LANG_Comanda_de_transport;
	$content_xml .= '
            </text:p>
			<text:p text:style-name="P2">' . LANG_Nr . " " . htmlspecialchars($comanda->nr_comanda_exec) . '</text:p>
			<text:p text:style-name="P4" />';
?>			